<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>部门管理</title>
<script language="javascript" type="text/javascript" src="/bfs/common/scripts/dynamicImportJs.js"></script>
<script>
    load([ "jquery-1.11.2","easyUI-1.4.5", "permission","validate","knockout-3.3.0","basicCommon","sm3"]);   
</script>
</head>
<body class="bfsbody">
<script type="text/javascript">
importScript("scripts/deptInfo.js"); 

</script>
	<!--main-->
	<div class="n-main">
		<!--right-->
		<div class="n-content n-boxsd marlf5" id="n-chart">
			<div class="n-dttitle n-boxsd wdth">
				<strong><span>部门名称：</span></strong>
				<input class="easyui-textbox" id="searchDeptName" />
				<input id="btnSearch" class="n-cmbtn n-gr marlf10" value="查询" type="button" />
				<div style="float: right;margin-right: 15px;">
					<!-- <a href="#" class="easyui-linkbutton" id="collapseAllDept" data-options="iconCls:'delete',plain:'true',size:'large',iconAlign:'left'">全部折叠</a> -->
					<a href="#" class="easyui-linkbutton" id="add" data-options="iconCls:'icon-addUser',plain:'true',size:'large',iconAlign:'left'">添加</a>
					<a href="#" class="easyui-linkbutton" id="deletes" data-options="iconCls:'icon-deleteUser',plain:'true',size:'large',iconAlign:'left'">批量删除</a>
				</div>
			</div>
			<div class="right-content n-boxsd" style="margin-top: 8px;">
				<div class="list treelist">
					<table id="listDataEx1" style="width: 100%;"></table>
				</div>
				<div class="nolist" style="display: none;">
				<div class="nolist-content">
					<div class="nolist-con"></div>
					<span>对不起，系统无相关记录...</span>
					</div>
				</div>
			</div>
		</div>
		<!--right end-->
	</div>
	<!--main end-->
	<div id="createDeptDiv" class="easyui-window" style="width: 390px;" title="新增部门" minimizable="false" modal="true" collapsible="false" resizable="false" maximizable="false"
		closed="true">
		<div class="window-div">
			<form method="POST" id="createDeptForm">
				<input type="hidden" name="deptLeaderId" />
				<table class="window-table">
					<tr class="window-tr">
						<td class="window-td">部门名称：</td>
						<td>
							<input class="easyui-textbox" type="text" name="deptName" data-options="required:true,validType:'maxLength[40]'" id="addDeptName" style="width: 180px">
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">上级部门：</td>
						<td>
						<!-- ko if: isAdmin()-->
						<input id="addPdeptId" name="pdeptId" style="width: 180px"  />
						<!-- /ko -->
						<!-- ko ifnot: isAdmin() -->
						<input id="addPdeptId" name="pdeptId" style="width: 180px" data-options="required:true"/>
						<!-- /ko -->
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">管理员账号：</td>
						<td>
							<input class="easyui-textbox" type="text" name="loginname" data-options="required:true,validType:'username'"  id="addLoginname" style="width: 180px">
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">管理员密码：</td>
						<td>
							<input class="easyui-textbox" id="addLoginpw" type="password" name="loginpw" data-options="required:true,validType:['#addLoginpw','password']" style="width: 180px">
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">确认密码：</td>
						<td>
							<input class="easyui-textbox" id="addconfirmPW" name="confirmPW" type="password" data-options="required:true" validType="equalTo['#addLoginpw']" invalidMessage="两次输入密码不匹配" style="width: 180px"></input>
						</td>
					</tr>
					<tr class="window-tr">
						<td colspan="2" class="window-td" style="width: 282px; ">
							<p>部门职能描述：</p>
						</td>
					</tr>
					<tr>
						<td colspan="2" class="window-td" style="width: 282px">
							<input name="deptDesc" class="easyui-textbox" data-options="multiline:true,prompt:'请输入部门职能描述...',validType:'maxLength[500]'" value="" style="width: 282px; height: 60px">
						</td>
					</tr>
				</table>
			</form>
			<div class="op-btn">
				<input id="submitCreateDept" class="n-cmbtn n-gr marlf20" value="保存" type="button" />
				<input id="cancelCreateDept" class="n-cmbtn btn-border marlf20" value="取消" type="button" />
			</div>
		</div>
	</div>

	<div id="editDeptDiv" class="easyui-window" style="width: 390px;" title="修改部门" minimizable="false" modal="true" collapsible="false" resizable="false" maximizable="false" closed="true">
		<div class="window-div">
			<form method="POST" id="editDeptForm">
				<input type="hidden" name="deptId" id="editDeptId" />
				<table class="window-table">
					<tr class="window-tr">
						<td class="window-td">部门名称：</td>
						<td>
							<input class="easyui-textbox" type="text" name="deptName" data-options="required:true,validType:'maxLength[40]'" id="editDeptName" style="width: 180px">
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">上级部门：</td>
						<td>
							<input id="editPdeptId" name="pdeptId" style="width: 180px" />
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">部门负责人：</td>
						<td>
						<input id="selectEditDeptLeaderName" name="deptLeaderId" style="width: 180px" />
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td" colspan="2" style="width: 282px; ">
							<p>部门职能描述：</p>
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td" colspan="2" style="width: 282px">
							<input name="deptDesc" class="easyui-textbox" data-options="multiline:true,prompt:'请输入部门职能描述...',validType:'maxLength[500]'" value="" style="width: 282px; height: 60px">
						</td>
					</tr>
				</table>
			</form>
			<div class="op-btn">
				<input id="submitEditDept" class="n-cmbtn n-gr marlf20" value="保存" type="button" />
				<input id="cancelEditDept" class="n-cmbtn btn-border marlf20" value="取消" type="button" />
			</div>
		</div>
	</div>


	<div id="editSelfDeptDiv" class="easyui-window" style="width: 390px;" title="修改部门" minimizable="false" modal="true" collapsible="false" resizable="false" maximizable="false" closed="true">
		<div style="padding: 10px 20px 0px 20px;">
			<form method="POST" id="editSelfDeptForm">
				<input type="hidden" name="deptId" id="editSelfDeptId" />
				<table style="width: 100%;">
					<tr class="window-tr">
						<td class="window-td">部门名称：</td>
						<td>
							<input class="easyui-textbox" type="text" name="deptName" data-options="required:true,validType:'maxLength[100]'" id="editSelfDeptName" style="width: 180px">
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">上级部门：</td>
						<td>
							<input id="editSelfPdeptId" name="pdeptId" style="width: 180px" />
						</td>
					</tr>
					<tr class="window-tr">
						<td class="window-td">部门负责人：</td>
						<td>
						<input id="selectEditSelfDeptLeaderName" name="deptLeaderId" style="width: 180px" />
						</td>
					</tr>
					<tr class="window-tr">
						<td colspan="2" class="window-td">
							<p>部门职能描述：</p>
						</td>
					</tr>
					<tr class="window-tr">
						<td colspan="2" class="window-td" style="width: 282px">
							<input name="deptDesc" class="easyui-textbox" data-options="multiline:true,prompt:'请输入部门职能描述...',validType:'maxLength[500]'" value="" style="width: 282px; height: 60px">
						</td>
					</tr>
				</table>
			</form>
			<div class="op-btn">
				<input id="submitEditSelfDept" class="n-cmbtn n-gr marlf20" value="保存" type="button" />
				<input id="cancelEditSelfDept" class="n-cmbtn btn-border marlf20" value="取消" type="button" />
			</div>
		</div>
	</div>
	</div>
</body>
</html>